<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<%@ include file="/WEB-INF/common/header.jsp"%>

<div class="layui-fluid">
	<form class="layui-form" isLoad="${empty bean ? 0 : 1}">
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">排序：</label>
	    <div class="layui-input-block">
	   		<input type="text" name="sort" required lay-verType="tips" lay-verify="number" placeholder="数字" autocomplete="off" class="layui-input" style="width:50px;" value="${empty bean ? 1: bean.sort}" />
	    </div>
	  </div>
	  
	  <hr>
		
	  <div class="layui-form-item">
	    <label class="layui-form-label">accKeyId：</label>
	    <div class="layui-input-block">
	    	<c:choose>
	    		<c:when test="${not empty bean && bean.accessKeyId != null && bean.accessKeyId != '' }">
	    			<div class="layui-form-mid layui-word-aux">${bean.accessKeyId }</div>
	      			<input type="hidden" name="accessKeyId" />
	    		</c:when>
	    		<c:otherwise>
	    			<input type="text" name="accessKeyId" required="" lay-verType="tips" lay-verify="required" placeholder="请输入阿里云短信accessKeyId" autocomplete="off" class="layui-input" maxlength="20" />
	    		</c:otherwise>
	    	</c:choose>
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">Secret：</label>
	    <div class="layui-input-block">
	    	<c:choose>
	    		<c:when test="${not empty bean && bean.accessKeySecret != null && bean.accessKeySecret != '' }">
	    			<div class="layui-form-mid layui-word-aux">${bean.accessKeySecret }</div>
	      			<input type="hidden" name="accessKeySecret" />
	    		</c:when>
	    		<c:otherwise>
	    			<input type="text" name="accessKeySecret" required lay-verType="tips" lay-verify="required" placeholder="请输入阿里云短信Secret" autocomplete="off" class="layui-input" maxlength="50" />
	    		</c:otherwise>
	    	</c:choose>
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">短信签名：</label>
	    <div class="layui-input-block">
	    	<input type="text" name="signName" required lay-verType="tips" lay-verify="required" placeholder="长度限2－12个字符，建议为用户真实应用名/网站名/公司名" autocomplete="off" class="layui-input" maxlength="12" />
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">状态：</label>
	    <div class="layui-input-inline">
	    	<select name="status" class="fsSelect" isLoad="1" dict="status" addNull="1"></select>
	    </div>
	  </div>
	  
	  <hr>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">描述：</label>
	    <div class="layui-input-block">
	      <textarea name="notice" placeholder="请输入短信配置描述" class="layui-textarea" style="width:400px;"></textarea>
	    </div>
	  </div>
	  
	  <hr/>
	  
	  <div class="layui-form-item" style="text-align: center;">
	  	 <button class="layui-btn" lay-submit="" lay-filter="${empty bean ? 'save' : 'edit' }" url="${ctx }/sms/conf/add?add=${empty bean ? true : false }"><i class="layui-icon">&#xe642;</i>${empty bean ? '新增' : '编辑' }</button>
     	 <button type="button" class="layui-btn layui-btn-primary" function="close">关闭</button>
   	  </div>
  
	</form>
</div>
	
<%@ include file="/WEB-INF/common/bottom.jsp"%>